<template>
	<view>
		<ug-address></ug-address>
		<!-- 购物车列表 -->
		<van-card num="2" price="2.00" desc="描述信息">
			<view class="custom-thumb" slot="thumb">
				<van-radio name="1"></van-radio>
				<image src="../../static/logo.png"></image>
			</view>
		</van-card>
	</view>
</template>

<script>
	import {
		mapGetters
	} from 'vuex'
	export default {
		data() {
			return {

			};
		},
		// 页面加载 执行1次

		// 看见就会触发
		onShow() {
			uni.setTabBarBadge({
				index: 2,
				text: this.totalCount + ''
			})
		},
		computed: {
			...mapGetters('cart', ['totalCount'])
		}
	}
</script>

<style lang="scss">
	.custom-thumb {
		display: flex;
		height: 100%;
		align-items: center;

		image {
			width: 150rpx;
			height: 200rpx;
		}
	}
</style>
